package com.dragon.mmochat.model.statistics;

public class MmochatOnlineInfo implements Comparable<MmochatOnlineInfo> {
	private long time;
	private int onlineNum;

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public int getOnlineNum() {
		return onlineNum;
	}

	public void setOnlineNum(int onlineNum) {
		this.onlineNum = onlineNum;
	}

	@Override
	public int compareTo(MmochatOnlineInfo arg0) {
		if (time < arg0.getTime()) {
			return 0;
		}
		return 1;
	}

}
